import request from '@/utils/request'

//查询全部员工
export function getList(params) {
  return request({
    url: '/worker/list',
    method: 'get',
    params
  })
}
//新增员工信息 addworker
export function addworker(params) {
  return request({
    url: '/worker/add',
    method: 'get',
    params
  })
}

//更新员工新消息  updateworker
export function updateworker(data) {
  return request({
    url: '/worker/updateworker',
    method: 'post',
    data
  })
}
//单个删除
export function del(params) {
  return request({
    url: '/worker/del',
    method: 'get',
    params
  })
}
//批量删除  delBatch
export function delBatch(params) {
  return request({
    url: '/worker/delBatch',
    method: 'get',
    params
  })
}
//获得后端柱形图数据 getNum
export function getNum() {
  return request({
    url: '/worker/getNum',
    method: 'get',

  })
}
